/**
 * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.springblade.modules.monitor.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 视图实体类
 *
 * @author Blade
 * @since 2020-05-17
 */
@Data
@ApiModel(value = "WorkOrderVO对象", description = "WorkOrderVO对象")
public class WorkOrderDTO {
	private static final long serialVersionUID = 1L;


	@ApiModelProperty("快速筛选类型；0：我未完成的问题 1：所有问题 2：已处理问题 3：最近创立 4：最近解决 5：最近更新-")
	private String fastSearchType;

	@ApiModelProperty("故障等级 1:信息 2:警告 3:一般严重 4:严重 5:灾难")
	private Integer orderType;

	@ApiModelProperty("工单状态")
	private Integer currentOrderState;

	@ApiModelProperty("当前责任人、经办人id")
	private Long currentUserId;

	@ApiModelProperty("包含文本（描述）")
	private String orderDescribe;

	@ApiModelProperty(value = "开始时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime startTime;

	@ApiModelProperty(value = "结束时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime endTime;

	@ApiModelProperty("排序字段名称")
	private String sortBy;

	@ApiModelProperty("是否降序排列")
	private String descFlag;

	@ApiModelProperty(hidden = true)
	private Long loginUserId;

	/**
	 * 快速搜索开始时间
	 */
	@ApiModelProperty(hidden = true)
	private LocalDateTime fastStartTime;

	/**
	 *快速搜索结束时间
	 */
	@ApiModelProperty(hidden = true)
	private LocalDateTime fastEndTime;

}
